function getWindowSize(){
	var a,b;
	if(document.documentElement&&document.documentElement.clientWidth)a=document.documentElement.clientWidth;
	else if(document.body)a=document.body.clientWidth;
	if(document.documentElement&&document.documentElement.clientHeight)b=document.documentElement.clientHeight;
	else if(document.body)b=document.body.clientHeight;
	return[a,b];
}

function resize(a,b){
	b = b-50;
	var c=Math.max(a-220,0);
	
	var temp = $("#sidebar").is(":hidden");//是否隐藏
	var temp1= $("#sidebar").is(":visible");//是否可见 
	if(temp||!temp1){
		c=Math.max(a,0);
	}
	$("#g_plugin").css( {height: (Math.max(b,0)+"px") } );
	$("#sidebar").css( {height: (b+1+"px") } );
	$("#info_list_container").css( {height: (Math.max(b-171,0)+"px") } );
	$("#map_warp").css( {width: (c+"px") } );
	$("#map_warp").css( {height: (b+"px") } );
	$("#map_container").css( {width: (c+"px") } );
	$("#map_container").css( {height: (b+"px") } );
	$("#FullScreen").css( {top: ((b/2)+"px") } );
}

function resizeFull(){
	var a=getWindowSize();
	//alert(a[0]+"-"+a[1]);
	resize(a[0],a[1]);
}
